import request from '@/utils/request'

// 查询账号信息列表
export function listClearing(query) {
  return request({
    url: '/clearing/list',
    method: 'get',
    params: query
  })
}

export function listAllClearing(query) {
  return request({
    url: '/clearing/list/all',
    method: 'get',
    params: query
  })
}

// 查询账号信息详细
export function getClearing(id) {
  return request({
    url: '/clearing/' + id,
    method: 'get'
  })
}

// 新增账号信息
export function addClearing(data) {
  return request({
    url: '/clearing',
    method: 'post',
    data: data
  })
}

// 修改账号信息
export function updateClearing(data) {
  return request({
    url: '/clearing',
    method: 'put',
    data: data
  })
}

// 删除账号信息
export function delClearing(id) {
  return request({
    url: '/clearing/' + id,
    method: 'delete'
  })
}
